<?php

return [
    /*
    |--------------------------------------------------------------------------
    | 自动注册路由
    |--------------------------------------------------------------------------
    |
    | 是否自动注册包的路由到 admin 路由组中
    */
    'auto_register_routes' => true,

    /*
    |--------------------------------------------------------------------------
    | 路由前缀
    |--------------------------------------------------------------------------
    |
    | 分类管理的路由前缀
    */
    'route_prefix' => 'rjyst-category',

    /*
    |--------------------------------------------------------------------------
    | 表配置
    |--------------------------------------------------------------------------
    |
    | 分类表的相关配置
    */
    'table' => [
        'name' => 'categorys',
        'title_column' => 'name',
        'order_column' => 'page',
        'parent_column' => 'parent_id',
    ],

    /*
    |--------------------------------------------------------------------------
    | 默认配置
    |--------------------------------------------------------------------------
    */
    'defaults' => [
        'parent_id' => 0,
        'level' => 0,
        'path' => '-',
        'page' => 0,
        'is_directory' => false,
    ],

    /*
    |--------------------------------------------------------------------------
    | 上传配置
    |--------------------------------------------------------------------------
    */
    'upload' => [
        'disk' => 'public',
        'path' => 'category/images',
    ],
];
